package cn.cxyxj.code_auth_jwt_persistence_prod;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@MapperScan(basePackages = {"cn.cxyxj.code_auth_jwt_persistence_prod.mapper"})
public class CodeAuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(CodeAuthApplication.class);
    }

    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
